<template>
  <div v-if="data.id"
       class="detail">
    <good-show-img :data="data"/>
    <good-show-detail :data="data"/>
  </div>
  <loading v-else
           height="600px"
           width="100%"/>
</template>

<script lang="ts"
        setup>
import GoodShowDetail from '@/components/library/GoodShowDetail.vue'
import GoodShowImg from '@/components/library/GoodShowImg.vue'
import Loading from '@/components/library/Loading.vue'
import type {GoodDetail} from '@/types/good'

defineProps<{
  data: GoodDetail
}>()
</script>

<style lang="less"
       scoped>
.detail {
  display: flex;
}
</style>